﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PolePositionDesktop
{
    public partial class SelectDatabase : Form
    {
        protected string m_SelectedFolder = "";
        public string SelectedFolder
        {
            get { return m_SelectedFolder; }
        }

        protected bool m_IsNew;
        public bool IsNew
        {
            get { return m_IsNew; }
        }

        public bool m_CopymobileVersion;
        public bool CopyMobileVersion
        {
            get { return m_CopymobileVersion; }
        }


        public SelectDatabase()
        {
            InitializeComponent();
        }

        private void buttonAccept_Click(object sender, EventArgs e)
        {
            m_IsNew = _SelectingDatabase.IsNew;
            m_CopymobileVersion = _SelectingDatabase.CopyMobileVersion;
            m_SelectedFolder = _SelectingDatabase.SelectedFolder;
            this.Close();


        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            if(string.IsNullOrEmpty(m_SelectedFolder))
                this.Close();
            m_SelectedFolder = "";
        }

    }
}
